class x_PlayerInput extends PlayerInput;

var x_PlayerController xPC;
var float mMouseX, mMouseY;

function InitInputSystem()
{
	super.InitInputSystem();
	xPC = x_PlayerController(Outer);
}

exec function XC_ShowMainMenu()
{
	if (x_HUD(xPC.myHUD) != none) x_HUD(xPC.myHUD).ShowMainMenu(); // ESC
}

function bool InputAxis( int ControllerId, name Key, float Delta, float DeltaTime, optional bool bGamepad )
{
	switch(Key)
	{
		case 'MouseX':  mMouseX += Delta;
		break;
		case 'MouseY':  mMouseY += Delta;
		break;
		default:
		break;
	}
	return false;
}

DefaultProperties
{
  OnReceivedNativeInputAxis = InputAxis
}